package com.mh.alltest;

import com.mh.caipiao.vo.MyVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Test {
    @Autowired
    private MyVo myVo;

//    @PostConstruct
    public void ssst(){
        for (int i = 0; i < 100; i++){
            int finalI = i;
            new Thread(()->{
//                System.out.println("xxxxxxxxxx");
                myVo.getCaipEntity(finalI +"");
                log.info(finalI+ " xxxxx "+myVo.getCaiPiaoEntity().getCode());
            }).start();
        }

    }


}
